using UnityEngine; using GoogleMobileAds.Api; public class Ad_initialize: MonoBehaviour { void Awake() { MobileAds.Initialize(initStatus => { });//You can handle the initialization here } }